﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebCrawler.Graph;
using WebCrawler.Graph.Interfaces;
using WebCrawler.HtmlParser.Interfaces;

namespace WebCrawler.Graph
{
    public class DocVertex : IVertex
    {
        public string Name { get; private set; }
        public bool Marked { get; set; }
        public List<Edge> Edges { get; set; }
        public int level { get; set; }
        public bool Dubplicated { get; set; }

        public string Url 
        {
            get 
            {
                return Document.Url ?? string.Empty;
            }
        }
        public IHtmlDoc Document { get; set; }

        public DocVertex(IHtmlDoc document)
        {
            Document = document;
            Edges = new List<Edge>();
        }
    }
}
